<template>
    <div id="My-Top-Box">
        <div class="My-Top-top">
            <span class="one iconfont icon-saoyisao1"></span>
            <p class="two">
                <span class="iconfont icon-sousu"></span>
                <input type="text" placeholder="搜索知乎内容">
            </p>
            <span class="one iconfont icon-dark"></span>
            <span class="one iconfont icon-shezhi"></span>
        </div>
        <div class="My-Top-middle">
            <div class="top">
                <img src="img/My/My.png" alt="">
                <div>
                    <h2>饕餮</h2>
                    <p>
                        <img src="img/My/aixin.jpg" alt="">
                        知乎盐值:295
                    </p>
                </div>
                <p class="p"  @click="GoMyDetail()">
                    个人主页
                    <span>＞</span>
                </p>
            </div>
            <div class="bottom">
                <p>
                    <span class="tit">未开通</span>
                    <span class="b s">创作</span>
                </p>
                <p>
                    <span class="t">5</span>
                    <span class="b">关注</span>
                </p>
                <p>
                    <span class="t">2</span>
                    <span class="b">收藏</span>
                </p>
                <p>
                    <span class="t">12</span>
                    <span class="b s">最近浏览</span>
               </p>
            </div>
            <div class="yes">
                <div class="tit">
                    <h2>开通盐选会员</h2>
                    <span>畅享&nbsp;&nbsp;10W+&nbsp;&nbsp;优质内容</span>
                </div>
                <p @click="KaiTong()">首月仅￥9</p>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Top",
        methods:{
            GoMyDetail(){

                this.$router.push("/MyDetail");
            },
            KaiTong(){

                this.$router.push("/KaiTong");
            }
        }
    }
</script>

<style lang="scss" scoped>
    #My-Top-Box {
        background-color: #FFFFFF;
    }

    .My-Top-top {
        width: 100%;
        position: fixed;
        top: 0;
        padding: 0.15rem 0.14rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #ffffff;
        z-index: 5;


        .one {

            display: block;
            height: 100%;
            font-size: 0.24rem;
            flex-grow: 0;
            color: #414141;
        }

        .two {
            width: 2.4rem;
            height: 0.3rem;
            border-radius: 0.15rem;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            flex-grow: 0;
            background-color: #fbfbfb;
            padding-left: 0.15rem;

            span {
                font-size: 0.15rem;
                margin-right: 0.07rem;
            }

            input {
                border-width: 0;
                outline: none;
                background-color: #fbfbfb;
            }

            input::placeholder {
                color: #909090;
                font-size: 0.15rem;
            }
        }
    }

    .My-Top-middle {
        height: 2.19rem;
        position: relative;
        padding: 0rem 0.14rem 0;

        .top {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 0 0.14rem 0 0.12rem;

            img {
                width: 0.6rem;
                margin-right: 0.1rem;
            }

            div{

                h2{
                    font-size: 0.19rem;
                }

                p{
                    color: #007bfa;
                    font-size: 0.12rem;
                    margin-top: 0.06rem;

                    img{
                        width: 0.15rem;
                        vertical-align: middle;
                    }
                }
            }

            .p{
                align-self: flex-start;
                position: absolute;
                right: 0.3rem;
                font-size: 0.14rem;
                color:#272727;

                span{
                    font-size: 0.16rem;
                    color: #787878;
                }
            }
        }

        .bottom{
            height: 0.86rem;
            display: flex;
            justify-content: flex-start;
            align-items: center;

            p{
                width: 25%;
                display: flex;
                justify-content: center;
                flex-direction: column;
                align-items: center;

                .tit{
                    font-size: 0.13rem;
                    color:#0686fc;
                    font-weight:bold;
                }

                span{
                    display: block;
                    width: 100%;
                    text-align: center;
                }

                .t{
                    font-size: 0.15rem;
                    color:#000000;
                    font-weight: bold;
                }
                .b{
                    color: #333333;
                    font-size: 0.12rem;
                    border-right:0.01rem solid #ededed;
                    border-left:0.01rem solid #f3f3f3;
                }
                .s{
                    border-width: 0;
                }
            }
        }

        .yes{
            width:3.33rem;
            height:0.66rem;
            background-color: #faeddd;
            padding: 0.12rem 0.2rem;
            border-radius: 0.08rem;
            display: flex;
            justify-content: space-between;
            align-items: center;


            h2{
                font-size: 0.18rem;
                line-height: 0.18rem;
                color:#491b00;
                margin-bottom: 0.09rem;
            }

            span{
                font-size: 0.16rem;
                line-height: 0.16rem;
                color:#ba771c;
            }

            p{
                width: 0.88rem;
                height: 0.36rem;
                background-color: #f4c37e;
                text-align: center;
                line-height: 0.36rem;
                border-radius: 0.18rem;
                font-size: 0.16rem;
                color:#4b2500
            }
        }
    }

</style>